#ifndef LINEWIDGET_H
#define LINEWIDGET_H

#include <QtGui/QWidget>
#include "ui_linewidget.h"

class LineWidget: public QWidget {
Q_OBJECT

public:
	LineWidget(QWidget *parent = 0);
	~LineWidget();

public:
	virtual QSize sizeHint() const;

protected:
	void paintEvent(QPaintEvent * event);

	virtual void resizeEvent(QResizeEvent * event);

private:
	void drawDdaLine(int startX, int startY, int endX, int endY);

private:
	Ui::LineWidgetClass ui;

	int cellWidth, cellHeight, coordX, coordY;
};

#endif // LINEWIDGET_H
